/**
 * @author: giscafer ,https://github.com/giscafer
 * @date: 2018-12-03 14:19:49
 * @description:
 */

var mongoose = require('mongoose');

var productSchema = new mongoose.Schema({
	title: String,
	waybillId: String,
	content: String,
	supplyTime: String, // 产品提供日期
	time: String,
	price: String,
	shopPrice: String, // 网上原价
	refPrice: String, // 参考价格（工厂价格，和网上原价）
	category: String,
	productNo: String,
	description: String,
	order: Number, // 数字，排序，数字越大，越靠前
	status: String, // 0 待出售，1 已出售，2 暂不出售，'' 所有
	from: String,
});

mongoose.model('Products', productSchema);
